<?php


namespace app\models\request;


use yii\base\Model;

class ReqMenu extends Model
{
    public function rules()
    {
        return [
            [[ 'name','url'], 'required'],
            [["menuId","parentId","name",'url','perms','type','icon','orderNum'],"safe"]
        ];
    }
    /**
     * @var int 菜单id
     */
    private $menuId;

    /**
     * @var int 父菜单ID，一级菜单为0
     */
    private $parentId;

    /**
     * @var string 菜单名称
     */
    private $name;

    /**
     * @var String 菜单URL;
     */
    public $url;

    /**
     * @var String 授权(多个用逗号分隔，如：user:list,user:create)
     */
    private $perms;

    /**
     * @var int 类型   0：目录   1：菜单   2：按钮
     */
    private $type;

    /**
     * @var string 菜单图标
     */
    private $icon;

    /**
     * @var int 排序
     */
    private $orderNum;

    /**
     * @return int
     */
    public function getMenuId()
    {
        return $this->menuId;
    }

    /**
     * @param int $menu_id
     */
    public function setMenuId($menu_id)
    {
        $this->menuId = $menu_id;
    }

    /**
     * @return int
     */
    public function getParentId()
    {
        return $this->parentId;
    }

    /**
     * @param int $parent_id
     */
    public function setParentId($parent_id)
    {
        $this->parentId = $parent_id;
    }

    /**
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return String
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * @param String $url
     */
    public function setUrl($url)
    {
        $this->url = $url;
    }

    /**
     * @return String
     */
    public function getPerms()
    {
        return $this->perms;
    }

    /**
     * @param String $perms
     */
    public function setPerms($perms)
    {
        $this->perms = $perms;
    }

    /**
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param int $type
     */
    public function setType($type)
    {
        $this->type = $type;
    }

    /**
     * @return string
     */
    public function getIcon()
    {
        return $this->icon;
    }

    /**
     * @param string $icon
     */
    public function setIcon($icon)
    {
        $this->icon = $icon;
    }

    /**
     * @return int
     */
    public function getOrderNum()
    {
        return $this->orderNum;
    }

    /**
     * @param int $order_num
     */
    public function setOrderNum($order_num)
    {
        $this->orderNum = $order_num;
    }



}